// 引入 request 文件
import request from '@/utils/request'

// 以下 api 为博主项目示例，实际与项目相匹配
// 获取验证码
export const sendSmsCode = (params) => {
    return request({
        url: '/sendSmsCode',
        method: 'post',
        data: params
    })
}
// 首页的
export const checkChannelV1 = (params) => {
	console.log(uni.getStorageSync("channelid"),'uni.getStorageSync("channelid")')
    return request({
        url: '/h5/checkChannelV1?channelid=' + uni.getStorageSync("channelid"),
        method: 'get',
        data: params
    })
}

// 获取登录的
export const login = (params) => {
    return request({
        url: '/registerV3',
        method: 'post',
        data: params
    })
}
// 统计落地页的
export const clickChannel = (params) => {
    return request({
        url: '/clickChannel',
        method: 'post',
        data: params
    })
}
// 统计产品点击时候的
export const clickShop = (params) => {
    return request({
        url: '/clickShop',
        method: 'post',
        data: params
    })
}
// 
// 产品列表
export const getShopListv1 = (params) => {
    return request({
        url: '/getShopListv1',
        method: 'post',
        data: params
    })
}
// h5留资并匹配
export const saveV5 = (params) => {
    return request({
        url: '/userInfo/saveV5',
        method: 'post',
        data: params
    })
}
// 点击连登产品
export const clickGood = (params) => {
    return request({
        url: '/clickGood',
        method: 'post',
        data: params
    })
}
// 推送   点击确定
export const surePush = (params) => {
    return request({
        url: '/userInfo/surePush',
        method: 'post',
        data: params
    })
}
// 点击获取产品详情
export const apiShopDetail = (params) => {
    return request({
        url: '/userInfo/apiShopDetail',
        method: 'post',
        data: params
    })
}
// 再次申请
export const authorizeAgain = (params) => {
    return request({
        url: '/userInfo/authorizeAgain',
        method: 'post',
        data: params
    })
}
// 获取当前位置
export const address = (params) => {
    return request({
        url: '/address',
        method: 'get',
        data: params
    })
}
// 老用户免登操作
export const oldRegisterV5 = (params) => {
    return request({
        url: '/oldRegisterV5',
        method: 'get',
        data: params
    })
}
// 老用户免登操作
export const analysis = (params) => {
    return request({
        url: '/h5/analysis',
        method: 'post',
        data: params
    })
}



